package com.partner.share.work.redis.utils;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

/**
 * @author pengyangyan
 * @version 1.0.0
 * @date 2019年10月04日 13:06:00
 */
public class RedisUtil {

    @Autowired
    private RedisTemplate<String, Object> redisTemplate;


    public void setKey(String key,Object value){
        redisTemplate.opsForValue().set(key, value);
    }
}
